Some fixes and improvements for desktop frame restoration.
authorJuanma Barranquero <lekktu@gmail.com>
Sun, 30 Jun 2013 05:08:23 +0000 (07:08 +0200)
committerJuanma Barranquero <lekktu@gmail.com>
Sun, 30 Jun 2013 05:08:23 +0000 (07:08 +0200)
commit801e68f76317cd651b0c9aeb247eba6ab2b1d7ca
tree290afd33d5dd92468556fbb776c6f2ca0c31df89
parent166c659063c1ab894eb4792f1e4fc35348dd2f1b
Some fixes and improvements for desktop frame restoration.
It is still experimental and disabled by default.

* lisp/desktop.el (desktop--save-windows): Put the selected frame at
  the head of the list.
  (desktop--make-full-frame): New function.
  (desktop--restore-windows): Try to re-select the frame that was
  selected upon saving.  Do not abort if some frames fail to restore,
  just show an error message and contnue.  Set up maximized frames so
  they have default non-maximized dimensions.
lisp/ChangeLog
lisp/desktop.el